import 'package:fluent_ui/fluent_ui.dart';

class ConfirmButton extends StatefulWidget {
  final void Function() uploadButton;

  const ConfirmButton({super.key, required this.uploadButton});

  @override
  State<StatefulWidget> createState() => _ConfirmButton();
}

class _ConfirmButton extends State<ConfirmButton> {
  @override
  Widget build(BuildContext context) {
    return Container(
        margin: const EdgeInsets.only(top: 40),
        child: SizedBox(
            width: 400,
            child: FilledButton(
                child: const Text(
                  '确认',
                  style: TextStyle(fontSize: 24),
                ),
                onPressed: () => widget.uploadButton())));
  }
}
